package com.trade.okxserver.clr.trade;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class SubscribeEvent {

    @JsonProperty("event")
    private String event;
    @JsonProperty("arg")
    private ArgDTO arg;
    @JsonProperty("code")
    private String code;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("connId")
    private String connId;

    @NoArgsConstructor
    @Data
    public static class ArgDTO {
        @JsonProperty("channel")
        private String channel;
        @JsonProperty("instId")
        private String instId;
    }
}
